package com.acme.mock;

public class AccountFactory {

	public Account getAccount(String accType_, double balance, double overdraft) {
		Account acc = accType_.equals("c") 
				? new CheckingAccount(balance, overdraft) 
				: new SavingAccount(balance);
		return acc;
	}
	
}
